import { defineStore } from 'pinia';
import { userListService } from '@/service/user/index';

    const useUserStore= defineStore('user', {
    state: () => {
        return {
            userList: [],
            total:0
        };
    },
    getters: {
       
    },
    actions: {
        async userListAction(page:any) {
            const result = await userListService(page)
            this.userList=result.data.list
            this.total=result.data.total
        }
    },
});

export default useUserStore